package com.usian.mapper;

import com.usian.pojo.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface StudentMapper {
    @Select("select * from student")
    List<Student> findAll();

    //批量插入
    void addStudentExcelFileToDatabase(List<Student> studentList);
}
